package reflect;

import java.io.File;
import java.net.URISyntaxException;

public class Test2 {
    public static void main(String[] args) throws URISyntaxException {
        File dir = new File(
                Test2.class.getResource(".").toURI()
        );
        System.out.println(dir);




//        File[] subs = dir.listFiles(f -> f.getName().endsWith(".class"));
//        for (File sub :
//                subs) {
//            System.out.println(sub.getName());
//        }
    }
}
